#include "Calendar.h"

Calendar::Calendar( QWidget* parent )
: QWidget( parent )
{
	QVBoxLayout* layout = new QVBoxLayout();
	setLayout( layout );

	mCalendar = new QCalendarWidget( this );
	layout->addWidget( mCalendar );

	QString widgetStyle( "QWidget { font-size:16px; background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop: .1 #cccccc, stop: .8 #333333);}" );
	QString toolButtonStyle( "QToolButton{height: 30px;}" );
	QString itemViewStyle( "QAbstractItemView { font-size:20px; background-color: rgb( 227, 228, 217 ); selection-background-color: rgb(150, 0, 50);}" );
	
	mCalendar->setStyleSheet( widgetStyle += toolButtonStyle += itemViewStyle );
}

Calendar::~Calendar()
{
}